package com.industrial.operation.service.impl;

import java.util.List;

import com.industrial.common.core.utils.uuid.IdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.industrial.operation.mapper.OperationEconomicIndicatorsMapper;
import com.industrial.operation.domain.OperationEconomicIndicators;
import com.industrial.operation.service.IOperationEconomicIndicatorsService;

/**
 * 重点企业运行（按市）Service业务层处理
 * 
 * @author Zhou_S
 * @date 2024-01-18
 */
@Service
public class OperationEconomicIndicatorsServiceImpl implements IOperationEconomicIndicatorsService 
{
    @Autowired
    private OperationEconomicIndicatorsMapper operationEconomicIndicatorsMapper;

    /**
     * 查询重点企业运行（按市）
     * 
     * @param baseId 重点企业运行（按市）主键
     * @return 重点企业运行（按市）
     */
    @Override
    public OperationEconomicIndicators selectOperationEconomicIndicatorsByBaseId(String baseId)
    {
        return operationEconomicIndicatorsMapper.selectOperationEconomicIndicatorsByBaseId(baseId);
    }

    /**
     * 查询重点企业运行（按市）列表
     * 
     * @param operationEconomicIndicators 重点企业运行（按市）
     * @return 重点企业运行（按市）
     */
    @Override
    public List<OperationEconomicIndicators> selectOperationEconomicIndicatorsList(OperationEconomicIndicators operationEconomicIndicators)
    {
        return operationEconomicIndicatorsMapper.selectOperationEconomicIndicatorsList(operationEconomicIndicators);
    }

    /**
     * 新增重点企业运行（按市）
     * 
     * @param operationEconomicIndicators 重点企业运行（按市）
     * @return 结果
     */
    @Override
    public int insertOperationEconomicIndicators(OperationEconomicIndicators operationEconomicIndicators)
    {
        operationEconomicIndicators.setBaseId(IdUtils.simpleUUID());
        return operationEconomicIndicatorsMapper.insertOperationEconomicIndicators(operationEconomicIndicators);
    }

    /**
     * 修改重点企业运行（按市）
     * 
     * @param operationEconomicIndicators 重点企业运行（按市）
     * @return 结果
     */
    @Override
    public int updateOperationEconomicIndicators(OperationEconomicIndicators operationEconomicIndicators)
    {
        return operationEconomicIndicatorsMapper.updateOperationEconomicIndicators(operationEconomicIndicators);
    }

    /**
     * 批量删除重点企业运行（按市）
     * 
     * @param baseIds 需要删除的重点企业运行（按市）主键
     * @return 结果
     */
    @Override
    public int deleteOperationEconomicIndicatorsByBaseIds(String[] baseIds)
    {
        return operationEconomicIndicatorsMapper.deleteOperationEconomicIndicatorsByBaseIds(baseIds);
    }

    /**
     * 删除重点企业运行（按市）信息
     * 
     * @param baseId 重点企业运行（按市）主键
     * @return 结果
     */
    @Override
    public int deleteOperationEconomicIndicatorsByBaseId(String baseId)
    {
        return operationEconomicIndicatorsMapper.deleteOperationEconomicIndicatorsByBaseId(baseId);
    }
}
